Compositional Symmetric Sharing in B
نویسندگان
چکیده
Sharing between B constructs is limited, both on the specification and the implementation level. The limitations stem from the single writer/multiple readers paradigm, restricted visibility of shared variables, and structural constraints to prevent interference. As a consequence, applications with inherent sharing requirements have to either be described as large monolithic constructs or be underspecified, leading to a loss of modularity respectively certain desirable properties being unprovable. We propose a new compositional symmetric shared access mechanism based on roles describing rely/guarantee conditions. The mechanism provides for multiple writers on shared constructs, visibility of shared variables in the accessors’ invariants, and controlled aliasing. Use is uniform in machines, refinements, and implementations. Sharing is compositional: all proof obligations are local and do not require knowledge of the other accessors’ specifications, let alone their or the shared construct’s implementation. Soundness of the mechanism is established by flattening.
منابع مشابه
Simultaneous power sharing and protection against faults for DGs in microgrid with different loads
The LVRT (Low Voltage Ride Through) is the main characteristic of every power system in faulty conditions. When fault occurs, it is essential for power system such as microgrid to control the voltage and frequency normally. Naturally in fault status, the unbalanced voltage and current are inevitable, but with the aid of LVRT technique, microgrid can keep stability in main system parameters such...
متن کاملAn efficient symmetric polynomial-based key establishment protocol for wireless sensor networks
An essential requirement for providing secure services in wireless sensor networks is the ability to establish pairwise keys among sensors. Due to resource constraints on the sensors, the key establishment scheme should not create significant overhead. To date, several key establishment schemes have been proposed. Some of these have appropriate connectivity and resistance against key exposure, ...
متن کاملExperimental Study of Discharge Coefficient of Symmetric and Asymmetric Rectangular Labyrinth Weirs
The discharge coefficient of labyrinth weirs increases with increasing the crest length in a certain width range. The present research was carried out in a laboratory flume with a length of 8 m, a width of 0.6 m, and a height of 0.6 m. The discharge coefficient of two-cycle symmetric and asymmetric rectangular labyrinth weirs was experimentally measured. The dimensional analysis by the Buckingh...
متن کاملA Repetitive Control- based Approach for Power Sharing among Boost Converters in DC Microgrids
In this paper a repetitive control (RC) approach to improve current sharing between parallel-connected boost converters in DC microgrids is presented. The impact of changes in line impedance on current sharing is investigated. A repetitive controller is designed and connected in series with current controller of the boost converters to control the switching signals such that by regulating of th...
متن کاملA Web-Based Compositional Modeling System for Sharing of Physical Knowledge
This paper describes a compositional modeling system called CDME (Collaborative Device Modeling Environment) for constructing domain theories of physical systems, composing models of devices, and simulating their behavior. We have implemented the system with the goal of encouraging sharing as well as the collaborative construction of knowledge bases describing physical domains. To maximize the ...
متن کامل